import layout from '@/views/layout/index.vue'

export default {
    path: '/news',
    component: layout,
    redirect: '/news/ranking',
    name: 'newsRanking',
    meta: {
        title: '新闻',
        icon: 'location'
    },
    children: [
        {
            path: '/news/ranking',
            component: ()=>import('@/views/news-ranking/index.vue'),
            meta: {
                title: '新闻文章',
                icon: 'news'
            }
        },
        {
            path: '/news/:id',
            component: ()=>import('@/views/news-detail/index.vue'),
            meta: {
                title: '新闻细节',
                icon: 'news'
            }
        }

    ]
}